﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<iBuproModel.StudentPlan>>" %>
<%@ Import Namespace="IBupro.Extensions" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%: Html.Translate("studentPlans") %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2><%: Html.Translate("studentPlans") %></h2>

    <table>
        <tr>
            <th></th>
            <th>
                <%: Html.Translate("name") %>
            </th>
            <th>
                <%: Html.Translate("shortcut") %>
            </th>
            <th>
                <%: Html.Translate("studentFields") %>
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink(Html.Translate("details"), "Details", new { id = item.Id })%> |
            </td>
            <td>
                <%: item.Name %>
            </td>
            <td>
                <%: item.Shortcut %>
            </td>
            <td>
                <%:Html.ActionLink(Html.Translate("studentFields"), "StudentFields", "Home", new { id = item.Id })%>
            </td>
        </tr>
    
    <% } %>

    </table>


</asp:Content>

